<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>

<script src="<c:url value="/resources/js/jquery-1.10.2.min.js" />"></script>
<script type="text/javascript">
	$(function() {
		var stickyRibbonTop = $('#stickyribbon').offset().top;

		$(window).scroll(function() {
			if ($(window).scrollTop() > stickyRibbonTop) {
				$('#stickyribbon').css({
					position : 'fixed',
					top : '0px'
				});
			} else {
				$('#stickyribbon').css({
					position : 'static',
					top : '0px'
				});
			}
		});
	});
</script>

<!-- Menu Bar -->
<div id="stickyribbon">
	<ul
		<sec:authorize ifAnyGranted='ROLE_ADMIN'>class="stickyribbon-shadow"</sec:authorize>>
		<sec:authorize ifAnyGranted='ROLE_ADMIN'>
			<li><a href="<c:url value="/addUser"/>">Add User</a></li>
		</sec:authorize>
		<sec:authorize ifAnyGranted='ROLE_ADMIN'>
			<li><a href="<c:url value="/searchUser"/>">Search User(s)</a></li>
		</sec:authorize>
		<sec:authorize ifAnyGranted='ROLE_ADMIN'>
			<li><a href="<c:url value="/deleteUser"/>">Delete User</a></li>
		</sec:authorize>
		<sec:authorize ifAnyGranted='ROLE_ADMIN'>
			<li><a href="<c:url value="/j_spring_security_logout"/>">Logout</a></li>
		</sec:authorize>
</div>
<!-- Menu Bar -->